home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
Color Picker MDEF
/
info.txt
< prev
Wrap
Text File
|
2014-09-28
|
1KB
|
47 lines
Subject: Color Picker MDEF
Author: Jordan Zimmerman
Uploaded By: ALTURA
Date: 11/25/1995
File: Color MDEF.sit (19299 bytes)
Estimated Download Time (60658 baud): < 1 minute
Download Count: 289
Keywords: MENU DEFINITION PROCEDURE DEFPROC
KEYWORDS: MENU DEFINITION PROCEDURE DEFPROC
Color MDEF
(Color Picker MDEF)
By Jordan Zimmerman
(c)1995 by Jordan Zimmerman
This code implements a Macintosh MDEF for selecting a color. The user is presented with a matrix of color chips to select from.
Each menu item represents a color to be displayed. It should be a 12 byte string of the form:
RRRRGGGGBBBB
where RRRR, GGGG, and BBBB are hex numbers (as ASCII text).
So, the color black would be:
"\pFFFFFFFFFFFF"
the color green would be:
"\p0000FFFF0000"
The current color is, by definition, the menu item that has a mark. So, you should only set a mark (any value) for one item at time.
Reference the sample app for an example usage.
Unlimited use is hereby granted without restriction. However, the author would appreciate credit if possible.
Comments, questions, bugs, etc. should be sent to me:
jordanz@altura.com
------------------------------------------------------------
Macintosh Developers Forum Libraries Go Keyword: MDV
This file has been checked for viruses with Disinfectant 3.6